/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ci.core.dao.jpa;

import com.ci.core.cfg.HDDataConfig;
import java.io.Serializable;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 * @author Lang Yu
 * @description
 * @date Aug 31, 2010 3:56:25 PM
 * @version 1.0
 */
public class BaseDAO<T, ID extends Serializable> extends GenericDAOImpl<T,ID>{
    // 依赖注入对应所需要的数据源
    @PersistenceContext(unitName = HDDataConfig.HD_DATA_SOURCE)
    private EntityManager em;

    @Override
    public EntityManager em() { return em;}
}
